
<%@ page import="com.scalar.chiptrack.commons.Constants" %>
<%@ page import="com.scalar.chiptrack.users.Functionality" %>
<%@ page import="com.scalar.chiptrack.users.User" %>

<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
	<TBODY>
	<TR><TD bgColor=#ffffff colSpan=6><IMG height=28 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
	<TR>
		<TD vAlign=top noWrap colSpan=6><img src=<%=chipTracContext%>/jsp/includes/images/top_curve.gif width=32 height=28><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD>
	</TR>
    <%--<TR>
		<TD colspan='6' background='<%=chipTracContext%>/jsp/includes/images/left_bg.gif'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76 colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD noWrap align=middle bgColor=#cccccc><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
		<TD noWrap bgColor=#ffffff colSpan=2><SPAN class=leftsection>&nbsp;
            <%String href="/chiptrack/vendorInventoryReport.do?reporttype=vendorinventoryreport&reqFromExtUser=true&ps="+ps+"&cstKey="+cstKey;%>
        <chiptrack:externalRestrictedLink functionality='<%=Functionality.VENDOR_INVENTORY_REPORT%>' action='<%=User.USER_ACTION_VIEW%>' styleClass="leftsection" href="<%=href%>"
            onmouseover="window.status='Click to view Vendor Inventory Report';return true" onmouseout="window.status='';return true">Vendor Inventory Report</chiptrack:externalRestrictedLink>
        </SPAN></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    	<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>--%>
    <!--  Sales Orders -->
    <TR>
		<TD colspan='6' background='<%=chipTracContext%>/jsp/includes/images/left_bg.gif'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76 colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD noWrap align=middle bgColor=#cccccc><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
		<TD noWrap bgColor=#ffffff colSpan=2><SPAN class=leftsection>&nbsp;
            <%
                String userTypeCustomer = Constants.USER_TYPE_CUSTOMER+"";
            %>
        <logic:present name="user" scope="session">
            <logic:equal value="<%=userTypeCustomer%>" name="user" property="userType" scope="session">
                <chiptrack:restrictedLink functionality='<%=Functionality.SALES_ORDERS%>' styleClass="leftsection" href="/chiptrack/jsp/sales/ext_sales.jsp" onmouseover="window.status='Click for Sales Order details';return true" onmouseout="window.status='';return true">Sales Orders</chiptrack:restrictedLink>
            </logic:equal>
            <logic:notEqual value="<%=userTypeCustomer%>" name="user" property="userType" scope="session">
                <chiptrack:restrictedLink functionality='<%=Functionality.SALES_ORDERS%>' styleClass="leftsection" href="/chiptrack/selectCustomerForQuote.do?action=SelectCustomer&isSample=1" onmouseover="window.status='Click for Sales Order details';return true" onmouseout="window.status='';return true">Sales Orders</chiptrack:restrictedLink>                
            </logic:notEqual>
        </logic:present>
        <logic:notPresent name="user" scope="session">
            Sales Orders
        </logic:notPresent>
        </SPAN></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    	<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
    <!--  Sales Orders END-->
    <!--  Sample Sales Orders -->
    <TR>
		<TD colspan='6' background='<%=chipTracContext%>/jsp/includes/images/left_bg.gif'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76 colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD noWrap align=middle bgColor=#cccccc><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
		<TD noWrap bgColor=#ffffff colSpan=2><SPAN class=leftsection>&nbsp;
        <logic:present name="user" scope="session">
            <logic:equal value="<%=userTypeCustomer%>" name="user" property="userType" scope="session">
                <chiptrack:restrictedLink functionality='<%=Functionality.SAMPLES %>' styleClass="leftsection" href="/chiptrack/jsp/sales/ext_sales.jsp?isSample=0" onmouseover="window.status='Click for Sample Sales Order details';return true" onmouseout="window.status='';return true">Sample Sales Orders</chiptrack:restrictedLink>
            </logic:equal>
            <logic:notEqual value="<%=userTypeCustomer%>" name="user" property="userType" scope="session">
                <chiptrack:restrictedLink functionality='<%=Functionality.SAMPLES%>' styleClass="leftsection" href="/chiptrack/selectCustomerForQuote.do?action=SelectCustomer&isSample=0" onmouseover="window.status='Click for Sample Sales Order details';return true" onmouseout="window.status='';return true">Sample Sales Orders</chiptrack:restrictedLink>                
            </logic:notEqual>
        </logic:present>
        <logic:notPresent name="user" scope="session">
            Sample Sales Orders
        </logic:notPresent>
        </SPAN></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    	<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
    <!--  Sample Sales Orders END-->

    <!-- Vendor Packing Slip Link Starts Here-->
    <TR>
		<TD colspan='6' background='<%=chipTracContext%>/jsp/includes/images/left_bg.gif'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76 colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD noWrap align=middle bgColor=#cccccc><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
		<TD noWrap bgColor=#ffffff colSpan=2><SPAN class=leftsection>&nbsp;
            <chiptrack:restrictedLink href="/chiptrack/extUserSearchPackingSlip.do" functionality="<%=Functionality.PACKING_SLIP%>" styleClass="leftsection" onmouseover="window.status='Click to view packing slip';return true" onmouseout="window.status='';return true">
            Packing Slip
            </chiptrack:restrictedLink>
        </SPAN></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    	<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
    <!-- Vendor Packing Slip Link Ends Here-->

	<!-- Tape And Reel Request Starts Here -->

	<TR>
		<TD colspan='6' background='<%=chipTracContext%>/jsp/includes/images/left_bg.gif'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76 colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD noWrap align=middle bgColor=#cccccc><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
		<TD noWrap bgColor=#ffffff colSpan=2><SPAN class=leftsection>&nbsp;
            <chiptrack:restrictedLink href="/chiptrack/tapeReelRequest.do" functionality="<%=Functionality.TAPE_REEL_REQUEST%>" styleClass="leftsection" onmouseover="window.status='Click to view Tape and Reel Request';return true" onmouseout="window.status='';return true">
            Tape and Reel Request
            </chiptrack:restrictedLink>
        </SPAN></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    	<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>

	<!-- Tape And Reel Request Ends Here  -->

    <!-- Run Adaptor Link Starts Here-->
    <TR>
		<TD colspan='6' background='<%=chipTracContext%>/jsp/includes/images/left_bg.gif'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76 colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD noWrap align=middle bgColor=#cccccc><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
		<TD noWrap bgColor=#ffffff colSpan=2><SPAN class=leftsection>&nbsp;
            <chiptrack:restrictedLink href="/chiptrack/runAdaptor.do" functionality="<%=Functionality.RUN_ADAPTOR%>"  action="<%=User.USER_ACTION_MODIFY%>" styleClass="leftsection" onmouseover="window.status='Click to run adaptor';return true" onmouseout="window.status='';return true">
            Run Adaptor
            </chiptrack:restrictedLink>
        </SPAN></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    	<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
    <!-- Run Adaptor Slip Link Ends Here-->

    <!-- Data Entry Link Starts Here-->
    <TR>
		<TD colspan='6' background='<%=chipTracContext%>/jsp/includes/images/left_bg.gif'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76 colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD noWrap align=middle bgColor=#cccccc><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
		<TD noWrap bgColor=#ffffff colSpan=2><SPAN class=leftsection>&nbsp;
       <%  if ( Functionality.enableParentLink( Functionality.DATA_ENTRY, session ) )   {  %>
        <A class=leftsection href="<%=chipTracContext%>/jsp/operations/ext_user_data_entry.jsp" onmouseover="window.status='Click to enter Inventory Data Details';return true" onmouseout="window.status='';return true">
          Data Entry</A>
    <%  } else{         %>
        Data Entry
    <%  }               %>
        </SPAN></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    	<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
    <!-- Data Entry Link Ends Here-->

    <!-- Forecast Link Starts Here-->
    <TR>
		<TD colspan='6' background='<%=chipTracContext%>/jsp/includes/images/left_bg.gif'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76 colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD noWrap align=middle bgColor=#cccccc><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
		<TD noWrap bgColor=#ffffff colSpan=2><SPAN class=leftsection>&nbsp;
            <%  if ( Functionality.enableParentLink( Functionality.EXTERNAL_FORECAST, session ) )   {  %>
                <A class=leftsection href="<%=chipTracContext%>/jsp/forecast/external_forecast.jsp" onmouseover="window.status='Click to view Reports';return true" onmouseout="window.status='';return true"> Forecast </A>
            <%  } else{         %>
                Forecast
            <%  }               %>
        </SPAN></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    	<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
    <!-- Forecast Link ends Here -->

    <!-- Customer Distributor Sales Link Starts Here-->
    <TR>
		<TD colspan='6' background='<%=chipTracContext%>/jsp/includes/images/left_bg.gif'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76 colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD noWrap align=middle bgColor=#cccccc><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
		<TD noWrap bgColor=#ffffff colSpan=2><SPAN class=leftsection>&nbsp;
            <chiptrack:restrictedLink href="/chiptrack/distributorSalesSearch.do" functionality="<%=Functionality.DISTRIBUTOR_SALES_ORDER %>" styleClass="leftsection" onmouseover="window.status='Click to view Distributor Sales Order';return true" onmouseout="window.status='';return true">
            Distributor Sales
            </chiptrack:restrictedLink>
        </SPAN></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    	<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
    <!-- Customer Distributor Sales Link Ends Here-->

    <!-- Reports Link Starts Here-->
    <TR>
		<TD colspan='6' background='<%=chipTracContext%>/jsp/includes/images/left_bg.gif'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76 colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD noWrap align=middle bgColor=#cccccc><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
		<TD noWrap bgColor=#ffffff colSpan=2><SPAN class=leftsection>&nbsp;
            <%--<chiptrack:restrictedLink href="/chiptrack/jsp/sales/external_reports.jsp" functionality="<%=Functionality.RUN_ADAPTOR%>"  action="<%=User.USER_ACTION_VIEW%>" styleClass="leftsection" onmouseover="window.status='Click to view Reports';return true" onmouseout="window.status='';return true">
            Reports
            </chiptrack:restrictedLink>--%>
            <%  if ( Functionality.enableParentLink( Functionality.SAlES_EXTERNAL_REPORTS, session ) )   {  %>
                <A class=leftsection href="<%=chipTracContext%>/jsp/sales/external_reports.jsp" onmouseover="window.status='Click to view Reports';return true" onmouseout="window.status='';return true"> Reports </A>
            <%  } else{         %>
                Reports
            <%  }               %>
        </SPAN></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD>
	</TR>
	<TR>
		<TD background=<%=chipTracContext%>/jsp/includes/images/left_bg.gif><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
		<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    	<TD bgColor=#493B76><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
    <!-- Reports Link Ends Here-->

</TBODY>
</TABLE>